Xbasic
SQL::ReferenceListItem Method
Syntax
Column_Description as P = ::Item( Item as N )
Table_Description as P = ::Item( Item as N )
Select_Table_Description as P = ::Item( Item as N )
Arguments
- Column_Description
An array of SQL::Query::ColumnReference objects.
- Table_Description
An array of SQL::Query::TableReference objects.
- Select_Table_Description
An array of SQL::Query::SelectTableReference objects.
- ReferenceList
A SQL::ReferenceList object.
- Item
The number of the item in the list to examine. The first item is 1.
Description
The SQL::ReferenceList::Item() method returns information about an item in a SQL::ReferenceList object. You can find SQL::ReferenceList objects under SQL::Query objects.
Example
This example shows
dim conn as SQL::Connection dim qry as SQL::Query dim connstring as C dim select_exp as C connString = "{A5API='Access', FileName='c:\program files\a5v7\mdbfiles\alphasports.mdb'}" select_exp = "select Lastname from customer where bill_state_region = 'ma'" ? conn.open(connstring) = .T. ? qry.parse(select_exp) = .T. ? qry.Execute(conn) = .T. ? qry.ColumnReferences.item(1) = Name = "Lastname" Table = "" TokenTypeName = "ColumnReference"
See Also